﻿using Architecture.Repository.Interface;
using Architeture.Domain;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Repository.Impl
{
    public class UserRepository : BaseRepository<UserInfo>, IUserRepository
    {
        public UserRepository(EFCoreContext context) : base(context)
        {
        }

        public async Task<List<UserInfo>> GetAll()
        {
            return await base.GetAllAsync();
        }

        public async Task<UserInfo> SetUser(int id)
        {
            return await base.GetModelAsync(id);
        }

        public async Task<int> UserAdd(UserInfo model)
        {
            return await base.AddAsync(model);
        }



        public async Task<int> UserUpd(UserInfo model)
        {
            return await base.Update(model);
        }
    }
}
